]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenShield: Wake up on deactivate()
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 31 Mar 2020 19:07:59 +0000 (21:07 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 3 Apr 2020 14:44:50 +0000 (14:44 +0000)
Usually the screen is woken up before the shield is deactivated, but
it is also possible to unlock the session programmatically via the
org.gnome.ScreenSaver D-Bus API.

The intention is very likely not to unlock a turned off screen in
that case. Nor does it seem like a good idea to change the lock
state without any indication.

Waking up the screen is more likely to meet expectations and is
more reasonable too, so do that.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1158

js/ui/screenShield.js

index 1107a5ce965ea4bd771d6ffb98682030c4360c54..86221a3093526d931b3e1f8a9109ce45dcbeb7f6 100644 (file)
@@ -498,6 +498,8 @@ var ScreenShield = class {
         if (Main.sessionMode.currentMode == 'unlock-dialog')
             Main.sessionMode.popMode('unlock-dialog');
 
+        this.emit('wake-up-screen');
+
         if (this._isGreeter) {
             // We don't want to "deactivate" any more than
             // this. In particular, we don't want to drop